{extend name="public/public"}

{block name='title'}
    {empty name="pageContent['title']"}
    <title>{$pageData['title']}</title>
    {else/}
    <title>{$pageContent['title']}</title>
    {/empty}
{/block} 

{block name='keywords'}
    {empty name="pageContent['keywords']"}
    <meta name="keywords" content="{$pageData['keywords']}">
    {else/}
    <meta name="keywords" content="{$pageContent['keywords']}">
    {/empty}
{/block}

{block name='description'}
    {empty name="pageContent['description']"}
    <meta name="description" itemprop="description" content="{$pageData['description']}">
    {else/}
    <meta name="description" itemprop="description" content="{$pageContent['description']}">
    {/empty}
{/block}


{block name='css'}
<style>
    .c10{font-size: 40px;letter-spacing: 1px;font-weight: bold;color: #222538;}
    .c11{font-size: 14px;line-height: 40px;}
    .c11 .b1{margin-right: 20px;}
    .c12{margin: 30px auto;}
    .c12 p{margin-bottom: 0;}
    .c14 a{display: block;margin-bottom: 10px;font-size: 16px;color: #555;}
    .c15{max-width: 960px;margin:50px auto;}
    .c16{color: #999;cursor: default;font-size: 16px;}
    .c16:hover{color: #999;}
    .c17{padding: 20px;border:1px solid #ccc;}
    @media screen and (max-width: 960px){
        .c15{margin: 30px 4%;}
    }
</style>
{/block}

{block name="content"}
<div class="c15">
    <h1 class="c10">{$pageContent['title']}</h1>
    <div class="c11 flex">
        <div class="b1">{$pageContent['name']}</div>
        <div class="b2">发布时间：{$pageContent['create_time']|date='Y-m-d H:i'}</div>
    </div>
    <div class="c17">摘要：{$pageContent['abstract']}...</div>
    <div class="c12">
        {$pageContent['content']|raw}
    </div>
    <div class="c13">
        <div class="c14">
            {empty name="$shang"}
            <div class="c16">上一条：没有上一条了</div>
            {else /}
            <a href="{:url('news_details',array('id'=>$shang['id'],'type_id'=>$type))}">上一条：{$shang['title']}</a>
            {/empty}
        </div>
        <div class="c14">
            {empty name="$xia"}
            <div class="c16">下一条：没有下一条了</div>
            {else /}
            <a href="{:url('news_details',array('id'=>$xia['id'],'type_id'=>$type))}">下一条：{$xia['title']}</a>
            {/empty}
        </div>
    </div>
</div>
{/block}

{block name='js'}
<script>
    $(".nav-active-2").addClass('current-menu-item')
</script>
{/block}